home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Online
/
Apache
/
apache_1.3b3.diffs.readme
< prev
next >
Wrap
Text File
|
1997-12-10
|
2KB
|
90 lines
README for Apache_1.3b3.diffs
=============================
* unarchive the apache_1.3b3.tar.gz archive to a directory of your choice
* copy the apache_1.3b3.diffs file to the created apache_1.3b3 directory.
* patch the sources by opening a shell and type:
patch -l -p1 -i apache_1.3b3.diffs
* use the latest patch from ftp.ninemoons.com!
* if all went well you have an Amiga Apache source ready to compile
* It is possible that the src/main/util.c file is not patched correctly.
it happend to me, but Jeff Sheperd had no problems with it. So, it is
possible that it only happens with some configurations. Anyway,
if this happen to you, open an editor and load the src/main/util.c file.
then search for this part at line 446:
---------------------------- snip ---------------------------------
API_EXPORT(char *) make_dirstr(pool *p, const char *s, int n)
{
register int x, f;
char *res;
for (x = 0, f = 0; s[x]; x++) {
if (s[x] == '/')
if ((++f) == n) {
res = palloc(p, x + 2);
strncpy(res, s, x);
res[x] = '/';
res[x + 1] = '\0';
return res;
}
}
if (s[strlen(s) - 1] == '/')
return pstrdup(p, s);
else
return pstrcat(p, s, "/", NULL);
}
---------------------------- snap ---------------------------------
and replace it by:
---------------------------- snip ---------------------------------
API_EXPORT(char *) make_dirstr(pool *p, const char *s, int n)
{
register int x, f;
char *res;
for (x = 0, f = 0; s[x]; x++) {
#ifdef AMIGA /* Beware the dreaded ':' */
if (s[x] == '/' || (x && s[x-1] == ':'))
#else
if (s[x] == '/')
#endif
if ((++f) == n) {
res = palloc(p, x + 2);
strncpy(res, s, x);
#ifdef AMIGA
if (res[x-1] == ':')
x--;
else
#endif
res[x] = '/';
res[x + 1] = '\0';
return res;
}
}
if (s[strlen(s) - 1] == '/')
return pstrdup(p, s);
else
return pstrcat(p, s, "/", NULL);
}
---------------------------- snap ---------------------------------
Save it, and type make! Do not use the util.c.orig, the other parts of it
are patched correctly. If you experience the same or other problems compiling
the apache sources, please mail it to: apache@spinnewiel.xs4all.nl. Maybe
there is something wrong with the patch program from the GG distributions.
yours sincerely,
Bert Vortman.